"""HelloWorld URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
# from django.contrib import admin
from django.urls import path
from . import home

# urlpatterns = [
#     path('admin/', admin.site.urls),
# ]

from django.conf.urls import url


urlpatterns = [
    url(r'^$', home.hello),
    path(r'hello/', home.hello),
    # url par in the path -(r'^plist/(.+)/$', helloParam)- example: http://0.0.0.0:8888/hello/welcome/ssss
    url(r'^hello/welcome/(.+)/$', home.welcome),
    # url par after the request path -(r'^plist/$', helloParams1- example: http://0.0.0.0:8888/hello/user?user_id=001
    url(r'^hello/user/$', home.user),
    # request body
    url(r'^hello/user/profile/$', home.user_profile),
    # re_path(r'^index/$', views.index, name='index'),
    # re_path(r'^bio/(?P<username>\w+)/$', views.bio, name='bio'),
    # re_path(r'^weblog/', include('blog.urls')),
]
